<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
   <script src="${pageContext.request.contextPath}/JavaScript/vue.js"></script>
    <script src="${pageContext.request.contextPath}/JavaScript/JQuery.js"></script>
<title>二课管理后台</title>
</head>
<body>
<nav class="sb-topnav navbar navbar-expand navbar-dark bg-dark">
            <!-- Navbar Brand-->
            <a class="navbar-brand ps-3" href="${pageContext.request.contextPath}/admin/index.jsp">二课管理后台</a>
            <!-- Sidebar Toggle-->
            <button class="btn btn-link btn-sm order-1 order-lg-0 me-4 me-lg-0" id="sidebarToggle" href="#!"><i class="fas fa-bars"></i></button>
            <!-- Navbar Search-->
            <form class="d-none d-md-inline-block form-inline ms-auto me-0 me-md-3 my-2 my-md-0">
                <div class="input-group">
                    <input class="form-control" type="text" placeholder="搜索..." aria-label="Search for..." aria-describedby="btnNavbarSearch" />
                    <button class="btn btn-primary" id="btnNavbarSearch" type="button"><i class="fas fa-search"></i></button>
                </div>
            </form>
            <!-- Navbar-->
            <ul class="navbar-nav ms-auto ms-md-0 me-3 me-lg-4">
                <li class="nav-item dropdown">
                    <a class="nav-link dropdown-toggle" id="navbarDropdown" href="#" role="button" data-bs-toggle="dropdown" aria-expanded="false"><i class="fas fa-user fa-fw"></i></a>
                    <ul class="dropdown-menu dropdown-menu-end" aria-labelledby="navbarDropdown">
                        <li><a class="dropdown-item" href="">系统设置</a></li>
                        <li><hr class="dropdown-divider" /></li>
                        <li><a class="dropdown-item" href="${pageContext.request.contextPath}/indexFace/me.jsp">个人中心</a></li>
                        <li><hr class="dropdown-divider" /></li>


                        <li><a class="dropdown-item" href="${pageContext.request.contextPath}/IndexFace">用户端</a></li>
                        <li><hr class="dropdown-divider" /></li>


                        <div v-show="isShow" id="app">
                        <li><a class="dropdown-item" href="${pageContext.request.contextPath}/adminFace">管理端</a></li>
                        <li><hr class="dropdown-divider" /></li>
                        </div>

                        <li><a class="dropdown-item" href="${pageContext.request.contextPath}/logout">退出登录</a></li>
                    </ul>
                </li>
            </ul>
        </nav>


<script>


  var app = new Vue({
    el: "#app",
    data: {
      isShow:false,
      isShow: ${LogUser.getAdminID()} ? true : false //只有管理员才能进入后端
    }
  });


</script>
</body>
</html>